﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using Antu.WebControls;
using Antu.Core.Components;
using Antu.Core.Services;
using System.Web.UI.WebControls;

namespace WebSys.UI
{
    public class Index : Page
    {
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (base.Page.Session["UserName"] != null && base.Page.Session["UserName"].ToString() != "" && base.Page.Session["LoginUserName"] != null)
            {
                string strScript = "<script>function initWinInfo(){";
                strScript += string.Format("loadTitle('divCenter','业务办公区【欢迎您，{0}，今天是{1}】');HideLoading();", Page.Session["LoginUserName"], DateTime.Now.ToShortDateString());
                strScript += "}</script>";
                Response.Write(strScript);
            }
            else
            {
                base.Page.Response.Redirect("login.aspx");
            }
          
        }
    }
}


